<?php
use App\Models\Theme;

Theme::addJs("/admin/default/js/setting/index.js");
Theme::output();
?>
<meta name="_token" content="{{csrf_token()}}">
@extends('admin.default.layouts.app')

@section('content')
    <Tabs :animated="false" type="card">
        <Tab-pane label="系统设置">
            <!--搜索-->
            <i-form v-ref:form-inline inline>
                <Form-item prop="key">
                    <i-input type="text" :value.sync="searchForm.key" placeholder="键值">
                    </i-input>
                </Form-item>
                <Form-item prop="value">
                    <i-input type="text" :value.sync="searchForm.value" placeholder="键名">
                    </i-input>
                </Form-item>
                <Form-item>
                    <i-button type="primary" @click="handSearch('searchForm')">搜索</i-button>
                </Form-item>
            </i-form>
            <!--table数据-->
            <i-table border :content="$root" :columns="columns" :data="settingList"></i-table>
            <!--分页-->
            <div class="pagination-right">
                <Page :total="totalPage" :current="currentPage" :page-size="2" show-total show-elevator
                      v-on:on-change="handleCurrentChange"></Page>
            </div>
        </Tab-pane>
    </Tabs>

@endsection